<?php

class cntrlcharts implements viewController {

	private $area;
	private $side;
	private $dependencies = array("JavaScript" => array("facebox.js", "charts.js"), "CSS" => array("facebox.css"));
	private $pageName = "";
	
	public function __construct(user &$userObj){
		if( $userObj->getAccessLevel() == -1 ){
			// User has to be a global admin to access this view
			header("Location: home");
			exit;
		}
			
		$this->side = new template('control.chartSearch');
		$this->area = new template('area.chartSearch');
	}

	public function getSide(){
		return $this->side;
	}
	
	public function getArea(){
		return $this->area;
	}
	
	public function getDependencies(){
		return $this->dependencies;
	}

	public function getPageName(){
		return $this->pageName;
	}
	
	public function getTools(){
		return "";
	}

}

?>